package com.edu.admin.entity;



import javax.persistence.Table;
import javax.validation.constraints.Min;
import com.edu.admin.common.BaseEntity;

/**
 * 教师学科表实体
 * 
 * @author Wangjiong
 * 
 */
@Table(name = "sys_user_subject")
public class SysUserSubject extends BaseEntity{ 

	/**
	 * 
	 */
	private static final long serialVersionUID = 6473397188191014505L;
	/**
	 * 用户id
	 * 
	 */
	@Min(value = 1,message = "用户不能为空")
	private Long userId;
	/**
	 * 学校id
	 * 
	 */
	@Min(value = 1,message = "学科不能为空")
	private Long subjectId;
	
	
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getSubjectId() {
		return subjectId;
	}
	public void setSubjectId(Long subjectId) {
		this.subjectId = subjectId;
	}
	
}
